package com.lzy.managersystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzy.managersystem.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author qq619
* @description 针对表【sys_role】的数据库操作Mapper
* @createDate 2022-07-10 20:41:49
* @Entity com.lzy.managersystem.pojo.Role
*/
public interface RoleMapper extends BaseMapper<Role> {

    //查询所有用户
    List<Role> selectAll();

    //插入用户
    int insertSelective(Role role);

    //根据id删除用户
    int delById(@Param("id") Integer id);

    //更新用户
    int updateSelective(Role role);

    Role selectByKeyname(@Param("keyname") String keyname);
}




